<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			*{
				margin: 0px;
				padding: 0px;
			}
			.luckydiv{
				position: relative;
				width:472px;
				margin: 100px auto;
			}
			#pic2{
					position:absolute;
					top:135px;
					left: 152px;
			}
			#pic1{
				transition: all 3s;
			}
		</style>
	</head>
	<body>
		<div class="luckydiv">
			<img src="../image/zhuanpan.png/" id="pic1" />
			<img src="../image/wheel_center.png"  id="pic2" 
				onclick="chouJiang()"/>
		</div>
		<script>
			var arr=[3600,3690,3780,3870,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,3645,]
			var index = Math.floor(Math.random()*arr.length);
			var chouJiang = function(){
			
				pic1.style.transform = "rotate("+arr[index]+"deg)"
			};
		</script>
	</body>
</html>
